package staff;

public class Staff {
    public int staff_id;
    public String staff_name;
    public String sex;
    public int birth;
    public int department_id;
    public String department_name;

    public Staff(int staff_id, String staff_name, String sex, int birth, int department_id, String department_name) {
        this.staff_id = staff_id;
        this.staff_name = staff_name;
        this.sex = sex;
        this.birth = birth;
        this.department_id = department_id;
        this.department_name = department_name;
    }

    public int getStaff_id() {
        return staff_id;
    }

    public void setStaff_id(int staff_id) {
        this.staff_id = staff_id;
    }

    public String getStaff_name() {
        return staff_name;
    }

    public void setStaff_name(String staff_name) {
        this.staff_name = staff_name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getBirth() {
        return birth;
    }

    public void setBirth(int birth) {
        this.birth = birth;
    }

    public int getDepartment_id() {
        return department_id;
    }

    public void setDepartment_id(int department_id) {
        this.department_id = department_id;
    }

    public String getDepartment_name() {
        return department_name;
    }

    public void setDepartment_name(String department_name) {
        this.department_name = department_name;
    }

    @Override
    public String toString() {
        return "Staff{" +
                "员工编号" + staff_id +
                ", 员工姓名" + staff_name +
                ",性别 " + sex +
                ", 生日=" + birth +
                ", 部门代码=" + department_id +
                ", 部门名称=" + department_name +
                '}';
    }
}
